<!-- wuk-->
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>js/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/cloudmgr.css">
<script type="text/javascript" src="<%=basePath%>js/easyui/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=basePath%>js/public.js"></script>
<script type="text/javascript" src="<%=basePath%>pages/cloudmgr/crontabTask.js"></script>
</head>
<body scroll="yes" style="height:545px">
	<table id="datagrid" class="easyui-datagrid"
		data-options="rownumbers : true,title:'',
				singleSelect : false,
				fitColumns : true,
				toolbar : '#tb',
				loadMsg : '数据加载中,请稍后...',
				url : 'crontabAction.do?action=getAllTasks',
				fit:true,
				method : 'post'">
		<thead>
			<tr>
				<th data-options="field:'ck',checkbox:true">选择</th>
				<th data-options="field:'task_id',width:80">进程ID</th>
				<th data-options="field:'bol_name',width:120">Bol名</th>
				<th data-options="field:'display_name',width:180">程序名称</th>
				<th data-options="field:'exe_name',width:120,hidden:true">可执行程序名</th>
				<th data-options="field:'task_minute',width:60">分钟</th>
				<th data-options="field:'task_hour',width:60">小时</th>
				<th data-options="field:'task_day',width:60">天</th>
				<th data-options="field:'task_month',width:60">月</th>
				<th data-options="field:'task_year',width:60">年</th>
				<th data-options="field:'task_week',width:60">星期</th>
				<th data-options="field:'Is_Valid',hidden:false,width:80,formatter:function(value,row){
					if (value =='0') {return '<font color=red>无效</font>';}
  	 				if (value=='1') {return '<font color=green>有效</font>';} 
       				else {return '';}
					}">是否有效</th>
				<th data-options="field:'next_exec_time',width:140">首次执行时间</th>
				<th data-options="field:'next_time',width:140">下次执行时间</th>
				<th data-options="field:'create_date',hidden:true,width:80">创建时间</th>
				<th data-options="field:'modify_date',hidden:true,width:80">修改时间</th>
				</tr>
				</thead>
	</table>
	<div id="tb" style="padding:2px 5px;">
		域 : <input id="search_domain" class="easyui-combobox" style="width:130px;"/>
		BOL : <input id="search_bol" /> 
		<a class="easyui-linkbutton search-button" id="search">查询</a> 
		<a class="easyui-linkbutton operate-button" name="33070304" id="reArrange">调度</a>
		<a class="easyui-linkbutton operate-button" name="33070303" id="delete">删除</a>
		<a class="easyui-linkbutton operate-button" name="33070302" id="modify">修改</a>
		<a class="easyui-linkbutton operate-button" name="33070301" id="add">增加</a>
	</div>
	<div id="edit-window" title="编辑" style="width: 400px; height: 200px;">
		<div style="padding: 10px 60px 20px 60px;">
			<form id="ff" method="post">
				<table cellpadding="5">
					<tr>
						<td>程序名称:</td>
							<td><input class="easyui-textbox" style="width:170px" editable="false"
							id="edit_program_id" name="search.program_id" ></input>
					</tr>
					<tr>
						<td>分钟:</td>
						<td><input class="easyui-numberbox easyui-textbox" style="width:170px"
							data-options="prompt:'请输入分钟数',min:0,required:true"
							id="edit_task_minute" name="search.task_minute"></input></td>
					</tr>
					<tr>
						<td>小时:</td>
						<td><input class="easyui-numberbox easyui-textbox" style="width:170px"
							data-options="prompt:'请输入小时数',min:0,required:true"
							id="edit_task_hour" name="search.task_hour"></input></td>
					</tr>
					<tr>
						<td>天:</td>
						<td><input class="easyui-numberbox easyui-textbox"
							invalidMessage="请输入100内的非负数" missingMessage="请输入天数"  style="width:170px"
							data-options="prompt:'请输入天数',min:0,required:true"
							id="edit_task_day"
							name="search.task_day"></input></td>
					</tr>
					<tr>
						<td>月:</td>
						<td><input class="easyui-numberbox easyui-textbox"  style="width:170px"
							data-options="prompt:'请输入月份',min:0,required:true"
							id="edit_task_month"
							name="search.task_month"></input></td>
					</tr>
					<tr>
						<td>年:</td>
						<td><input class="easyui-numberbox easyui-textbox"  style="width:170px"
							data-options="prompt:'请输入年份',min:0,required:true"
							id="edit_task_year"
							name="search.task_year"></input></td>
					</tr>
					<tr>
						<td>星期:</td>
						<td><input class="easyui-numberbox easyui-textbox"  style="width:170px"
							invalidMessage="请输入10以内的非负数" missingMessage="请输入周数"
							data-options="prompt:'请输入周数',min:0,required:true"
							id="edit_task_week"
							name="search.task_week"></input></td>
					</tr>
					<tr style="display:none">
							<td><input class="easyui-textbox" style="width:170px"
							id="edit_BOL_ID" name="search.BOL_ID" ></input>
						</td></td>
					</tr> 
					<tr>
						<td>是否有效:</td>
						<td><select id="edit_Is_Valid" class="easyui-combobox"  panelHeight="auto" editable="false"
							name="search.Is_Valid" style="width:170px;">
								<option value="1">有效</option>
								<option value="0">无效</option>
						</select>
					</tr>
					<tr>
						<td>首次执行时间:</td>
						<td><input class="easyui-datetimebox" id="edit_next_exec_time" style="width:170px"
						data-options="prompt:'请输入首次执行时间'"  editable="false"
							name="search.next_exec_time"></input></td>
					</tr>

				</table>
				<div style="text-align:center;padding:5px;">
					<a href="javascript:void(0)" class="easyui-linkbutton form-button" id="submitForm">提交</a> 
					<a href="javascript:void(0)" class="easyui-linkbutton form-button" id="clearForm">清除</a>
				</div>
			</form>
		</div>
	</div>
	
	<div id="batchUpdate-window" title="批量修改" style="width: 400px; height: 200px;">
		<div style="padding: 10px 60px 20px 60px;">
			<form id="ffb" method="post">
				<table cellpadding="5">
					<tr>
						<td>程序名称:</td>
							<td><input class="easyui-textbox" style="width:170px" editable="false"
							id="batch_program_id" name="search.program_id" ></input>
					</tr>
					<tr>
						<td>分钟:</td>
						<td><input class="easyui-numberbox easyui-textbox" style="width:170px"
							data-options="prompt:'暂不修改',min:0"
							id="batch_task_minute" name="search.task_minute"></input></td>
					</tr>
					<tr>
						<td>小时:</td>
						<td><input class="easyui-numberbox easyui-textbox" style="width:170px"
							data-options="prompt:'暂不修改',min:0"
							id="batch_task_hour" name="search.task_hour"></input></td>
					</tr>
					<tr>
						<td>天:</td>
						<td><input class="easyui-numberbox easyui-textbox"
							invalidMessage="请输入100内的非负数" missingMessage="请输入天数"  style="width:170px"
							data-options="prompt:'暂不修改',min:0"
							id="batch_task_day"
							name="search.task_day"></input></td>
					</tr>
					<tr>
						<td>月:</td>
						<td><input class="easyui-numberbox easyui-textbox"  style="width:170px"
							data-options="prompt:'暂不修改',min:0"
							id="batch_task_month"
							name="search.task_month"></input></td>
					</tr>
					<tr>
						<td>年:</td>
						<td><input class="easyui-numberbox easyui-textbox"  style="width:170px"
							data-options="prompt:'暂不修改',min:0"
							id="batch_task_year"
							name="search.task_year"></input></td>
					</tr>
					<tr>
						<td>星期:</td>
						<td><input class="easyui-numberbox easyui-textbox"  style="width:170px"
							invalidMessage="请输入10以内的非负数" missingMessage="请输入周数"
							data-options="prompt:'暂不修改',min:0"
							id="batch_task_week"
							name="search.task_week"></input></td>
					</tr>
					<tr style="display:none">
							<td><input class="easyui-textbox" style="width:170px"
							id="batch_BOL_ID" name="search.BOL_ID" ></input>
						</td></td>
					</tr> 
					<tr>
						<td>是否有效:</td>
						<td><select id="edit_Is_Valid" class="easyui-combobox"  panelHeight="auto" editable="false"
							name="search.Is_Valid" style="width:170px;">
								<option value="">暂不修改</option>
								<option value="1">有效</option>
								<option value="0">无效</option>
						</select>
					</tr>
					<tr>
						<td>首次执行时间:</td>
						<td><input class="easyui-datetimebox" id="batch_next_exec_time" style="width:170px"
						data-options="prompt:'暂不修改'"  editable="false"
							name="search.next_exec_time"></input></td>
					</tr>

				</table>
				<div style="text-align:center;padding:5px;">
					<a href="javascript:void(0)" class="easyui-linkbutton form-button" id="submitFormb">提交</a> 
					<a href="javascript:void(0)" class="easyui-linkbutton form-button" id="clearForm">清除</a>
				</div>
			</form>
		</div>
	</div>
	
	<div id="targetbolwin" title="编辑">
		<div style="padding: 10px 20px 10px 20px;">
			<form id="ff" method="post">
				<table cellpadding="5">
					<tr>
						<td>目标VNOAE:</td>
						<td>
							<input id="bolist" style="width:150px">
						</td>
					</tr>
				</table>
			</form>
			<div style="text-align:center;padding:5px">
				<a href="javascript:void(0)" class="easyui-linkbutton form-button" id="arrangeConfirm">确定</a>
			</div>
		</div>
	</div>
</body>
</html>
